package com.lft.freshordering.service;

import com.lft.freshordering.entity.Audit;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author tyhxzy
 * @since 2024-12-02
 */
public interface IAuditService {
    int addAudit(Audit audit);

    Audit selectAudit(Integer id);

    int updateAudit(Audit audit);

    Boolean logout();
    Audit selectByUserId(Integer userId);
    //---------------------------------------------------------------------------------------------------------
    //查询所有审核信息
    List<Audit> selAll();

    Audit getById(Integer userId);

    boolean updateById(Audit audit);
    //修改审核状态
    Integer updateaudit(Integer auditId);

    Audit selectAuditIdByName(String shopName);
    //点击驳回修改审核状态
    Integer updateAuditStatusToReject(Integer id,Integer reviewStatus,String cause );
    List<Map> getAuditList();
    int updateAuditStatus(Integer id);
    int updateAuditStatusToReject(Integer id);
    Map selectauditdd2(Integer id);
}
